//调用接口配置文件
import { request } from 'config/request'


// 获取省市区
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};

// 删除直播
export async function deleteLiveServ(params) {
    return request({
        url: 'admin/liveBroadcast/delete',
        method: 'POST',
        data: params,
    });
};


//导出
export async function downLivePerson(params) {
    console.log(params);
    return request({
        url: `admin/liveBroadcast/audience/export/` + params.liveId,
        method: 'GET',
        // data: params,
    });
};

export async function generateQrCode(params) {
    return request({
        url: 'admin/wx/generateQrCode',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};

// 根据直播id查询视频列表
export async function queryByLiveBroadcastId(params) {
    return request({
        url: '/mideadc-live-center-service/live/tencentLiveRecording/queryByLiveBroadcastId',
        method: 'get',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};